package com.herui.ota.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.herui.ota.enums.OpsTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * table name:  t_ops_record
 * author name: amanda.shan
 * create time: 2024-04-28 22:55:45
 */ 
@Data
@Accessors(chain = true)
@ApiModel
@TableName("t_ops_record")
public class OpsRecord extends LightBaseEntity{

	@EnumValue
	@ApiModelProperty(value = "操作类型")
	private OpsTypeEnum type;

	@ApiModelProperty(value = "操作内容")
	private String msg;

	@ApiModelProperty(value = "记录id")
	private Integer recordId;


	@ApiModelProperty("创建人")
	private String creater;
	@TableField(
			exist = true
	)
	@ApiModelProperty("创建时间")
	private Date createTime;
	@TableField(
			exist = true
	)
	@ApiModelProperty("更新人")
	private String editor;
	@ApiModelProperty("更新时间")
	@TableField(
			exist = true,
			update = "now()"
	)
	private Date editTime = new Date();
}

